package actions;

import java.sql.SQLException;
import java.util.Vector;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import model.UniversityModel;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import db.DbException;
import model.ReviewerModel;
import javax.sql.RowSet;

public class chairsHome extends Action{
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws DbException {
		
		RowSet crsReviewers = ReviewerModel.getReviewer();
		
		request.setAttribute("crsReviewers", crsReviewers);
		
		
		
		int count = ReviewerModel.getReviewerCount();
		System.out.println(count);
      
		if(count <2)
			return mapping.findForward("not_started");
		
		else 
			return mapping.findForward("started");
	}
}

